package com.medicine.manage.service;

import java.util.List;
import com.medicine.manage.domain.OrderProcess;

/**
 * 流程Service接口
 *
 * @author admin
 * @date 2024-10-13
 */
public interface IOrderProcessService
{

    public static final Long ORDER_CONFIRM = 1L;
    public static final Long SOAKING = 2L;
    public static final Long BOILING = 3L;
    public static final Long PACKAGING = 4L;
    public static final Long EXPRESS = 5L;

    /**
     * 查询流程
     *
     * @param id 流程主键
     * @return 流程
     */
    public OrderProcess selectOrderProcessById(Long id);

    /**
     * 查询流程列表
     *
     * @param orderProcess 流程
     * @return 流程集合
     */
    public List<OrderProcess> selectOrderProcessList(OrderProcess orderProcess);

    /**
     * 新增流程
     *
     * @param orderProcess 流程
     * @return 结果
     */
    public int insertOrderProcess(OrderProcess orderProcess);

    /**
     * 修改流程
     *
     * @param orderProcess 流程
     * @return 结果
     */
    public int updateOrderProcess(OrderProcess orderProcess);

    public int updateProcessStatusByOrderAndType(OrderProcess orderProcess);
    /**
     * 批量删除流程
     *
     * @param ids 需要删除的流程主键集合
     * @return 结果
     */
    public int deleteOrderProcessByIds(Long[] ids);

    /**
     * 删除流程信息
     *
     * @param id 流程主键
     * @return 结果
     */
    public int deleteOrderProcessById(Long id);

    List<OrderProcess> selectOrderProcessListAndDetail(OrderProcess orderProcess);

    OrderProcess selectOrderProcessByOrderAndType(Long orderId, Long processType);


}
